const state = {
    dictMap: new Map(),
}


const mutations = {
    GET: (state: any, key: any) => {
       return  state.dictMap.get(key)
    },
    SET: (state: any,{key,value}) => {
        return  state.dictMap.set(key,value)
    },

}

const actions = {
    get({commit},key) {
        commit('GET', key)
    },
    set({commit},{key,value}){
        commit('SET', {key,value})
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}
